package com.zelix;

public abstract class al extends vh
        implements mh {

    private boolean g;
    private static String z;

    public al(int i) {
        super(i);
        g = false;
    }

    public String a() {
        StringBuffer stringbuffer;
        int i;
        int j;
        stringbuffer = new StringBuffer();
        i = super.b.length;
        j = 0;
        for (; j < i; j++) {
            mh mh1 = (mh) super.b[j];
            stringbuffer.append(mh1.a());
            if (j < i - 1)
                stringbuffer.append(z);
        }
        return (g ? "!" : "") + "(" + stringbuffer.toString() + ")";
    }

    public void a(uh uh1, nh nh) {
        int i;
        int j;
        i = g();
        j = 0;
        for (; j < i; j++) {
            uh uh2 = a(j);
            uh2.a(this, nh);
        }
    }

    public boolean a(String s) {
        boolean flag;
        int i;
        int j;
        flag = false;
        i = super.b.length;
        j = 0;
        for (; j < i; j++) {
            mh mh1 = (mh) super.b[j];
            if (!mh1.a(s))
                continue;
            flag = true;
        }
        return g ^ flag;
    }

    public void d() {
        g = true;
    }

    private static String z(char[] chs) {
        for (int i = 0; i < chs.length; i++) {
            byte key;
            switch (i % 5) {
                case 0:
                    key = 0x5d;
                    break;
                case 1:
                    key = 66;
                    break;
                case 2:
                    key = 83;
                    break;
                case 3:
                    key = 46;
                    break;
                default:
                    key = 4;
                    break;
            }
            chs[i] ^= key;
        }
        return new String(chs).intern();
    }

    static {
        z = z("}>/\016".toCharArray());
    }
}